/* Copyright (C) 2010 Luca Piccinelli
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* 
 * File:   serialization_exceptions.
 * Author: picci
 *
 * Created on August 6, 2011, 7:06 PM
 */

#ifndef SERIALIZATION_EXCEPTIONS_H
#define	SERIALIZATION_EXCEPTIONS_H

#include "prj_definitions.h"
#include "exceptions/gestface_exceptions.h"

namespace NAMESPACE{

class serialization_exception : public gestface_exception{
private:
    std::string what_msg;
    
public:
    virtual ~serialization_exception() throw(){}
    serialization_exception(const std::string& _what_msg) : gestface_exception(_what_msg) {}
};

class bad_xml_node : public serialization_exception{
public:
    virtual ~bad_xml_node() throw(){}
    bad_xml_node(const std::string& _what_msg) : serialization_exception(_what_msg) {}
};

class bad_xml_value : public serialization_exception{
public:
    virtual ~bad_xml_value() throw(){}
    bad_xml_value(const std::string& _what_msg) : serialization_exception(_what_msg) {}
};

}

#endif	/* SERIALIZATION_EXCEPTIONS_H */

